<div id="content-container" class="container">
    <div class="user-section login-section">
        <div class="logon-tab clearfix"><a class="active">{:__('Sign in')}</a> <a href="{:url('user/register')}?url={$url|urlencode|htmlentities}">{:__('Sign up')}</a></div>
        <div class="login-main">
            <form name="form" id="login-form"  method="POST" action="">
                <!--@IndexLoginFormBegin-->
                <input type="hidden" name="url" value="{$url|htmlentities}"/>
                {:token()}
                <div class="form-group">
                    <label class="control-label" for="account">{:__('Account')}</label>
                    <div class="controls">
                        {if $is_email eq 0}
                        <input class="form-control" id="account" type="text" name="account" value="" data-rule="required" placeholder="{:__('Mobile')}" autocomplete="off">
                        {else/}
                        <input class="form-control" id="account" type="text" name="account" value="" data-rule="required" placeholder="{:__('Email')}" autocomplete="off">
                        {/if}

                        <div class="help-block"></div>
                    </div>
                </div>

                <div class="control-label" for="password">{:__('Password')}</div>
                <div class="input-group">

                    <input class="form-control" id="password" type="password" name="password" data-rule="required;password" placeholder="{:__('Password')}" autocomplete="off">
                    <span class="input-group-addon"><i class="fa fa-eye-slash pwdType" id="icon-style" style="font-size: 16px;cursor: pointer"></i></span>
                </div>
                <div class="form-group" style="margin-top: 10px">
                    <div class="controls">
                        <div class="checkbox inline">
                            <label>
                                <input type="hidden" name="keeplogin"  value="1" class="read_service" id="check_read">
                                <input type="hidden" value="1" id="has_read_put" name="has_read_put">
                            </label>
                        </div>
                        <div class="pull-right"><a href="javascript:;" class="btn-forgot">{:__('Forgot password')}</a></div>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-lg btn-block">{:__('Sign in')}</button>
                    <a href="{:url('user/register')}?url={$url|urlencode|htmlentities}" class="btn btn-default btn-lg btn-block mt-3 no-border">{:__("Don't have an account? Sign up")}</a>
                </div>
                <!--@IndexLoginFormEnd-->
            </form>
        </div>
    </div>
</div>
<script type="text/html" id="showService">
    <style>
        .has_read{
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 6px;
            cursor: pointer;
        }
        .read_btn{

        }
        .tiaokuan{
            display: flex;
            padding: 6px 2px;
            color: #000;
            font-size: 20px;
            border-radius: 12px;
            cursor: pointer;
        }
    </style>
<div style="padding: 20px 30px;color: #000">
    {$articleData['descript']}

    <div style="height: 13px;border-bottom: 1px dashed #9b9b9b"></div>
    <div class="has_read">
        <img src="/assets/img/xuanzhong.png" class="read_btn" alt="" style="width: 22px;height: 22px;margin-top: 3px"/>
        <span class="read_btn tiaokuan" id="read_btn">{:__('has_read')}</span>
    </div>
</div>
</script>
<script type="text/html" id="resetpwdtpl">
    <style>
        #resetpwd-form{
            color: #000;
        }
    </style>
    <form id="resetpwd-form" class="form-horizontal form-layer" method="POST" action="{:url('api/user/resetpwd')}">
        <div class="form-body">
            {if $is_email eq 0}

            <input type="hidden" name="action" value="resetpwd"/>
            <input type="hidden" id="type-mobile" data-send-url="{:url('api/sms/send')}" data-check-url="{:url('api/validate/check_sms_correct')}" value="mobile">
            <div class="form-group" data-type="mobile">
                <label for="mobile" class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="text" class="form-control" id="mobile" name="mobile" value="" data-rule="required(#type-mobile:checked);mobile;remote({:url('api/validate/check_mobile_exist')}, event=resetpwd, id=0)" placeholder="">
                    <span class="msg-box"></span>
                </div>
            </div>
            <div class="form-group">
                <label for="captcha" class="control-label col-xs-12 col-sm-3">{:__('Captcha')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input type="text" name="captcha" id="captcha_val"  class="form-control" data-posturl="{:url('api/validate/check_sms_correct')}" data-rule="required;length({$Think.config.captcha.length});digits"/>
                        <span class="input-group-btn" style="padding:0;border:none;">
                            <a href="javascript:;" class="btn btn-primary" id="sendBtn" data-posturl="{:url('api/sms/send')}">{:__('Send verification code')}</a>
                        </span>
                    </div>
                    <span class="msg-box"></span>
                </div>
            </div>
            <div class="form-group">
                <label for="newpassword" class="control-label col-xs-12 col-sm-3">{:__('New password')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="password" class="form-control" id="newpassword" name="newpassword" value="" data-rule="required;password" placeholder="" autocomplete="off">
                    <span class="msg-box"></span>
                </div>
            </div>
            <div class="form-group">
                <label for="newpassword" class="control-label col-xs-12 col-sm-3"></label>
                <div class="col-xs-12 col-sm-8" id="show_msg">

                </div>
            </div>

            {else/}

            <input type="hidden" name="action" value="resetpwd"/>
            <input type="hidden" id="type-mobile" data-send-url="{:url('api/ems/send')}" data-check-url="{:url('api/validate/check_ems_correct')}" value="mobile">
            <div class="form-group" data-type="mobile">
                <label for="mobile" class="control-label col-xs-12 col-sm-3">{:__('Email')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="text" class="form-control" id="email" name="email" value="" data-rule="required(#type-mobile:checked);email;remote({:url('api/validate/check_email_exist')}, event=resetpwd, id=0)" placeholder="">
                    <span class="msg-box"></span>
                </div>
            </div>

            <div class="form-group">
                <label for="newpassword" class="control-label col-xs-12 col-sm-3">{:__('New password')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="password" class="form-control" id="newpassword" name="newpassword" value="" data-rule="required;password" placeholder="">
                    <span class="msg-box"></span>
                </div>
            </div>
            <div class="form-group">
                <label for="captcha" class="control-label col-xs-12 col-sm-3">{:__('Captcha')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input type="text" name="captcha" id="captcha_val"  class="form-control" data-posturl="{:url('api/validate/check_ems_correct')}" data-rule="required;length({$Think.config.captcha.length});digits"/>
                        <span class="input-group-btn" style="padding:0;border:none;">
                            <a href="javascript:;" class="btn btn-primary" id="sendBtn" data-posturl="{:url('api/ems/send')}">{:__('Send verification code')}</a>
                        </span>
                    </div>
                    <span class="msg-box"></span>
                </div>
            </div>
            <div class="form-group">
                <label for="newpassword" class="control-label col-xs-12 col-sm-3"></label>
                <div class="col-xs-12 col-sm-8" id="show_msg">

                </div>
            </div>


            {/if}
        </div>
        <div class="form-group form-footer">
            <div class="col-xs-12 col-sm-8 col-sm-offset-3">
                <button type="button" class="btn  btn-md btn-primary" id="btn-changepwd" data-posturl="{:url('api/user/resetpwd')}">{:__('Ok')}</button>
            </div>
        </div>
    </form>
</script>
